home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / RestZone.swf / scripts / frame_23 / PlaceObject2_72_52 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2004-07-20  |  424 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_root._xmouse,_root._ymouse,true))
  3.    {
  4.       if(eval("/:check") >= 24)
  5.       {
  6.          set("/:check",25);
  7.          tellTarget("/")
  8.          {
  9.             gotoAndStop("success");
  10.             play();
  11.          }
  12.       }
  13.       else
  14.       {
  15.          tellTarget("/")
  16.          {
  17.             gotoAndStop("error");
  18.          }
  19.       }
  20.       trace("success");
  21.    }
  22. }
  23.